package com.onlineshopping.mapper;

import com.onlineshopping.entity.Item;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author laisir
 * @date 2024/9/23
 */
@Mapper
public interface ItemMapper {
    List<Item> getAll();

    List<Item> search(String search);

    void deleteItem(Long id);

    void updateItem(Item item);

    void addProduct(Item item);
}
